package com.ruibang.glass.equipment.controller;

import com.ruibang.glass.equipment.domain.req.device.DeviceCarReq;
import com.ruibang.glass.equipment.domain.req.device.ElevatorReq;
import com.ruibang.glass.equipment.entity.device.DeviceCar;
import com.ruibang.glass.equipment.service.DeviceCarService;
import com.ruibang.glass.equipment.service.ProductLineService;
import com.ruibang.glass.equipment.service.WorkshopService;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
 * <p>
 *产品线服务
 * </p>
 *
 * @author mameng
 * @since 2024-03-20
 */
@RestController
@RequestMapping("/api/equipment/product/line")
@Api(value = "产品线")
public class DeviceLineController {

    @Autowired
    private WorkshopService productLineService;


    @GetMapping("getSelectList")
    @ApiOperation(value = "产品线下拉", response = ResultBody.class)
    public ResultBody getBoilerList(@RequestParam("id") String id) {
        return ResultBody.success(productLineService.getProductLineList(id));
    }

    @GetMapping("getSelectNewList")
    @ApiOperation(value = "产品线下拉", response = ResultBody.class)
    public ResultBody getBoilerList() {
        return ResultBody.success(productLineService.getSelectNewList());
    }
}
